"""
信息采集专家
"""
from langgraph.prebuilt import create_react_agent

from core.llm import llm
from core.agents.plan.prompts import research_prompt


researcher = create_react_agent(
    name="Researcher",
    role="Information Gatherer",
    description="Gathers and validates information based on delegated research sub-tasks.",
    prompt=research_prompt,
    model = llm,
    tools = [],
)


if __name__ == '__main__':
    res = researcher.invoke({"messages": "what's (3 + 5) x 12?"})
    print(res['messages'][-1].content)